Skip to main content
PATCH
/
beta
/
fleet
/
equipment
/
{id}
[beta] Update an equipment
curl --request PATCH \
  --url https://api.samsara.com/beta/fleet/equipment/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "attributes": [
    {
      "dateValues": [
        "2024-01-15",
        "2024-12-31"
      ],
      "id": "494123",
      "name": "Compliance/ELD",
      "numberValues": [
        867,
        5309
      ],
      "stringValues": [
        "HQ",
        "Leased"
      ]
    }
  ],
  "engineHours": 1234,
  "equipmentSerialNumber": "8V8WD530FLN016251",
  "externalIds": {},
  "id": "494123",
  "name": "Equipment-123",
  "notes": "These are my equipment notes",
  "odometerMeters": 1234,
  "tagIds": [
    "Sed doloribus.",
    "Veniam laudantium officiis cupiditate iusto vel ut.",
    "Et perferendis assumenda non."
  ]
}
'
{
  "data": {
    "attributes": [
      {
        "dateValues": [
          "2024-01-15",
          "2024-12-31"
        ],
        "id": "494123",
        "name": "Compliance/ELD",
        "numberValues": [
          867,
          5309
        ],
        "stringValues": [
          "HQ",
          "Leased"
        ]
      }
    ],
    "equipmentSerialNumber": "8V8WD530FLN016251",
    "externalIds": {},
    "id": "494123",
    "installedGateway": {
      "model": "VG34",
      "serial": "GFRV-43N-VGX"
    },
    "name": "Equipment-123",
    "notes": "These are my equipment notes",
    "tags": [
      {
        "id": "3914",
        "name": "East Coast",
        "parentTagId": "4815"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique Samsara ID of the Equipment. This is automatically generated when the Equipment object is created. It cannot be changed.

Body

application/json
attributes
object[]

List of attributes associated with the entity

engineHours
integer<int64>

When you provide a manual engine hours override, Samsara will begin updating a equipment's engine hours used since this override was set.

Example:

1234

equipmentSerialNumber
string

The serial number of the equipment.

Example:

"8V8WD530FLN016251"

externalIds
object

A map of external ids

id
string

The unique Samsara ID of the Equipment. This is automatically generated when the Equipment object is created. It cannot be changed.

Example:

"494123"

name
string

The human-readable name of the Equipment. This is set by a fleet administrator and will appear in both Samsara’s cloud dashboard as well as the Samsara Driver mobile app. By default, this name is the serial number of the Samsara Asset Gateway. It can be set or updated through the Samsara Dashboard or through the API at any time.

Example:

"Equipment-123"

notes
string

These are generic notes about the Equipment. Empty by default. Can be set or updated through the Samsara Dashboard or the API at any time.

Maximum string length: 255
Example:

"These are my equipment notes"

odometerMeters
integer<int64>

When you provide a manual odometer override, Samsara will begin updating a equipment's odometer using GPS distance traveled since this override was set.

Example:

1234

tagIds
string[]

An array of IDs of tags to associate with this equipment. If your access to the API is scoped by one or more tags, this field is required to pass in.

Example:
[
  "Sed doloribus.",
  "Veniam laudantium officiis cupiditate iusto vel ut.",
  "Et perferendis assumenda non."
]

Response

OK response.

data
object
required

The equipment object.